import { CardRecordResolver } from './cardRecord.resolver';
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { CardRecord } from './models/cardRecord.entity';
import { CardRecordService } from './cardRecord.service';
import { Product } from '../product/models/product.entity';
import { ProductService } from '../product/product.service';
import { TimetableRecord } from '../timetableRecord/models/timetableRecord.entity';
import { TimetableRecordService } from '../timetableRecord/timetableRecord.service';

@Module({
  imports: [TypeOrmModule.forFeature([CardRecord, Product, TimetableRecord])],
  providers: [
    CardRecordService,
    CardRecordResolver,
    ProductService,
    TimetableRecordService,
  ],
  exports: [CardRecordService, ProductService, TimetableRecordService],
})
export class CardRecordModule {}
